import { Component, OnInit } from '@angular/core';
import {FormBuilder} from "@angular/forms";
import {FetchService} from "../../../../core/net/fetch.service";
import {NzMessageService} from "ng-zorro-antd";
import {UtilService} from "../../../../core/util/util.service";

@Component({
  selector: 'app-ywglxt-tab4',
  templateUrl: './ywglxt-tab4.component.html',
  styleUrls: ['./ywglxt-tab4.component.scss']
})
export class YwglxtTab4Component implements OnInit {
  date = new Date();
  bodyStyle = {
    padding: '10px'
  };
  monthArr = [7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6];
  tableData = [
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0],
  ];

  constructor(
    private fb: FormBuilder,
    private fetchService: FetchService,
    private message: NzMessageService,
    private util: UtilService
  ) {
  }

  ngOnInit() {

  }

  save(): void {
    console.log(this.tableData);
  }

  onChange(e): void {
    console.log(e);
  }

}
